<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div>
    <h1>我是一个H5页面</h1>
    <p>混合开发</p>
    <img src="https://search-operate.cdn.bcebos.com/7e85570b817e17e8f3ae93134cc78451.gif" alt="" width="200"/>
    <button onclick="selfOpenPhoto()">打开鸿蒙相册</button>
    <button onclick="changeText()">修改p标签内容</button>
    <button onclick="useObjKey1()">objKey1</button>

</div>
</body>
<script>
    function changeText(str="我是默认值"){
    document.querySelector('p').innerHTML = str
    }
    function selfOpenPhoto(){
        objName.objKey(2)
    }
    function useObjKey1(){
        objName.objKey1()
    }
</script>
</html>